package com.yuma.springshiroredisthymeleaf.service.impl;

import com.yuma.springshiroredisthymeleaf.dao.UserDao;
import com.yuma.springshiroredisthymeleaf.entity.User;
import com.yuma.springshiroredisthymeleaf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;

    @Override
    public User getByName(String name) {
        return userDao.selectByName(name);
    }
}